<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<include file='Common:head'/>
<body>
<div class="formbody">
  <div class="formtitle"><span>基本信息</span></div>
  <ul class="forminfo">
    <form action="{:U('Member/editDo')}" method="post">
      <li>
        <label>用户名</label>
        <input name="username" type="text" class="dfinput" value="{$member['username']}"/>
      </li>
      <li>
        <label>密码</label>
        <input name="password" type="text" class="dfinput" />
        &nbsp;&nbsp;如果不需要修改密码，请不要填写！ </li>
      <li>
        <label>重复密码</label>
        <input name="pass" type="text" class="dfinput" />
      </li>
      <li>
        <label>是否锁定</label>
        <cite>
        <input name="lock" type="radio" value="1" <?php if($member['lock'] == 1) echo "checked='checked'";?> />
        正常&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="lock" type="radio" value="0" <?php if($member['lock'] == 0) echo "checked='checked'";?> />
        锁定 </cite> </li>
      <li>
        <label>所属角色</label>
        <cite>
        <foreach name="role" item="v"> <span style="float:left;">
          <?php
                	$arr = array();
                	foreach($MemberRole as $vo){
                    	$arr[] = $vo['id'];
                    }
                ?>
          <input name="role_id[]" type="checkbox" value="{$v['id']}" <?php if(in_array($v['id'],$arr)) echo "checked='checked'";?>/>
          {$v.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span> </foreach>
        </cite> </li>
      <li>
        <label>&nbsp;</label>
        <input type="hidden" name="id" value="{$member['id']}">
        <input type="submit" class="btn" value="确认保存"/>
      </li>
    </form>
  </ul>
</div>
</body>
</html>
